home *** CD-ROM | disk | FTP | other *** search
- Rem IFF2ASCII (c)1994 Matthew Stratfold M.P.Stratfold@open.ac.uk
- Rem If you make changes please tell me about them.
- Rem Conversion table as detailed in alt.ascii-art FAQ
- Rem Routine by M Stratfold
- Dim TABLE$(64)
- For I=1 To 64
- Read TABLE$(I)
- Next I
- Print ""
- Print " ___ __ __ ____ ___ V1.1 _ _"
- Print "|_ _|/ _|/ _|___ \ / _ \ ___ ___(_|_)"
- Print " | || |_| |_ __) | |_| / __|/ _| | |"
- Print " | || _| _|/ __/| _ \__ \ (_| | | "
- Print "|___|_| |_| |_____|_| |_|___/\___|_|_|"
- Print ""
-
- Print ""
- Print " (c)1994 Matthew Stratfold "
- Print ""
- Print " Select a picture to convert"
- Print " then click twice to define"
- Print " an area to convert "
- Print " - then wait a little"
- Print ""
- Print " Click to start...."
- Repeat
- M=Mouse Click
- Until M<>0
- F$=Fsel$("*.iff","","Choose picture to convert")
- If F$="" Then End
- Load Iff F$,1
- Limit Mouse 110,40 To 448,296
- Curs Off
- Change Mouse 2
- Set Line $F0F0
- Open Out 1,F$+".txt"
- Repeat
- M=Mouse Click
- Until M=1
- DX1=X Mouse
- DY1=Y Mouse
- DX1=X Screen(DX1)
- DY1=Y Screen(DY1)
- Repeat
- M=Mouse Click
- Until M=1
- DX2=X Mouse
- DY2=Y Mouse
- DX2=X Screen(DX2)
- DY2=Y Screen(DY2)
- If DY1>DY2 Then Swap DY1,DY2
- If DX1>DX2 Then Swap DX1,DX2
- Box DX1-1,DY1-1 To DX2+2,DY2+2
- For Y=DY1 To DY2 Step 3
- LINE$=""
- For X=DX1 To DX2 Step 2
- INDEX=0
- KEY=0
- For YSTEP=0 To 2
- For XSTEP=0 To 1
- If Point(X+XSTEP,Y+YSTEP) Then KEY=KEY+(2^INDEX)
- INDEX=INDEX+1
- Next XSTEP
- Next YSTEP
- LINE$=LINE$+TABLE$(KEY+1)
- Next X
- Print #1,LINE$+Chr$(10);
- Next Y
- Close
- End
-
- Data " ","`","'","~","-","!","/","f","-","\","!","V","=","+","Y","*"
- Data ".","|","/","7","i","[","/","P","v",")","/","Z","z","D","Z"
- Data "A",",","\","!","T","c","t","(","5","i","\","]","Y","e","N"
- Data "4","M","_","L","2","X","s","b","K","K","g","G","d","8","m"
- Data "W","W","@"
-
-